<?php
namespace Controller;

use HproseHttpClient;


/**
 * HproseClient
 * @author los_gsy
 */
class HproseClientController extends BaseController {
	/**
	 * 构造函数
	 */
	public function __construct() {
		parent::__construct();
	}


	/**
	 * test
	 */
	public function test() {
		$result = __METHOD__;
		echo 'result:<br />';
		var_dump($result);
		return false;
	}


	/**
	 * hproseClient
	 */
	public function hproseClient() {
		$client = new HproseHttpClient('http://www.mpf.lab/HproseServer/hproseServer');
// 		$client = new HproseHttpClient('http://www.mpf.lab/api/hproseServer.php');
		$name = '';
// 		for ($i = 0; $i < 1024; $i++) {
// 			$name .= 'b';
// 		}
		$result = $client->test($name);
		echo 'result: ' . $result;
		echo '<br />';
		echo 'result len: ', strlen($result), '<br />';
	}


}
